//
//  VideoProgressSlider.h
//  18Birdies
//
//  Created by weihua on 2018/5/22.
//  Copyright © 2018年 Lc. All rights reserved.
//

#import <UIKit/UIKit.h>

@class VideoProgressSlider;
@protocol VideoProgressSliderDelegate <NSObject>

@required
- (void)didProgressSliderValueChanged:(VideoProgressSlider*)progressSlider;

@end

@interface VideoProgressSlider : UIView

@property(nonatomic, weak) id<VideoProgressSliderDelegate> delegate;

@property(nonatomic, assign) BOOL enabled;
// should be [0, 1];
@property(nonatomic, assign) float value;
@property(nonatomic, assign) float cachePercentage;

// user can drag's max percentage
@property(nonatomic, assign) float maxDragValue;

@property(nonatomic, assign, readonly) BOOL isTouching;

- (void)clearMaxDragValue;

@end
